package com.ham.mud.commands;

import com.ham.mud.ServerConnection;
import com.ham.mud.state.RestingState;

/**
 * Created by hlucas on Jul 18, 2011 at 8:48:30 AM
 */
public class RestCommand extends PlayerCommand {

    @Override
    public void execute(ServerConnection connection, String[] params) {
        connection.changeState(new RestingState(connection));
        connection.printSolo("You lay down and begin to rest.");   
    }

    @Override
    protected String getCommandName() {
        return "rest";
    }
}
